class OrdersController < ApplicationController
  before_filter :authenticate_user!
  def new
    @order = Order.new
  end

  def create 
    @order = Order.new params[:order]
    @order.user = current_user
    if @order.save
      redirect_to current_user
    else
      render :action => :new
    end
  end
end
